package com.SouthernWall_404.AgeSuitcase.Client.Gui.Buttons;

import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.AbstractWidget;
import net.minecraft.client.gui.narration.NarrationElementOutput;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;

public class TransformableImage extends AbstractWidget {


    private ResourceLocation path;
    private int textureX;
    private int textureY;
    public TransformableImage(int x, int y, int width, int height, Component message,ResourceLocation path,int textureX,int textureY) {
        super(x, y, width, height, message);
        this.path =path;
        this.textureX=textureX;
        this.textureY=textureY;
    }

    @Override
    public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float particalTick) {
//        super.render(guiGraphics, mouseX, mouseY, particalTick);


        guiGraphics.blit(path,0,0,width,height,0,0,textureX,textureY,textureX,textureY);

    }

    @Override
    protected void renderWidget(GuiGraphics guiGraphics, int i, int i1, float v) {

    }

    @Override
    protected void updateWidgetNarration(NarrationElementOutput narrationElementOutput) {

    }
}
